#pragma once

#include "type.h"

#include "IRenderer.h"

#include "ChunkModel.h"

class ChunkModelDebugMesh
	: public ChunkSystem::IRenderable
{
public:
	ChunkModelDebugMesh( ChunkSystem::ChunkModel* pModelItem );
	virtual ~ChunkModelDebugMesh(void);

	//IRenderable
	virtual void Load( ChunkSystem::IRenderer* pRenderer );
	virtual void Unload( void );
	virtual void Draw( ChunkSystem::IRenderer* pRenderer );

private:

	ChunkSystem::ChunkModel* m_pModelItem;

	LPD3DXMESH m_pD3DMesh;

	CRITICAL_SECTION m_CriticalSection;
};

